package com.lc.rongzecaifu.conn;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 4/26/2016.
 */
@HttpInlet("user/withdraw_validate")
public class JsonWithdrawvalidate extends HYAsyGet<JsonWithdrawvalidate.Info> {
    public String access_token,uid, withdraw_money, passwd, bank_id;

    public static String status;

    public JsonWithdrawvalidate(String access_token, String uid, String withdraw_money, String passwd, AsyCallBack<Info> asyCallBack) {
        super(asyCallBack);
        this.access_token = access_token;
        this.uid = uid;
        this.withdraw_money = withdraw_money;
        this.passwd = passwd;

    }


    @Override
    protected Info parser(JSONObject object) {

        TOAST = object.optString("tips");
        status=object.optString("status");
        Info info = null;
        if (object.optString("status").equals("1")) {

            info = new Info();
            info.tips = object.optString("tips");
            info.status= object.optString("status");
            return info;

        }

        return null;
    }


    public static class Info {
        public String tips,status;
    }
}

